I don't like where that parameter goes as the 3rd argument after the call back function.  After the function definition, a third argument will be easy to miss.