You could also look at this post, it should be able to do what you're after with a bit of exploring the code:...