Passing timer to callback funciton