Add timer functionality to routines