No problem, James, thanks for the updated version - very cool! I didn't know that the argument is passed through automatically, that's a nice feature to have.
Vitor - good idea. James, would you like to do this seeing as you have done the most up to date version, or would you like me to (with appropriate mention of your new additions, of course?)