adding support for setting timer functions
adding support for setting timer functions