That post from goatofneptune that Steve is referring to is super useful and will get you where you wish to go.