Thanks rharv, that should actually do what I need!