I know im not the user you wanted but here is the link, CLICK. Just scroll down to the UPDATED VERSION and read the comments to see how to use it. I know you have to put one of the functions in main.

cheers