Try this Thread

Genius_at_work made a very good script for that.
I've been using it also for a while, and works like charm.