Corrected typo in timer function