Added tick function to execute timer callbacks