Added ability to change the function of a timer

because why not?