Watch this Author's files
This is a great piece of code that I use all the time. I appreciate how well commented the code is.
I made some updates so that the bar(s) can be embedded into a gui. I would be happy to send it your way if you like.