I think what the OP is looking for is this
Specifically in the first post - the link for the custom code that does this.