Added comments and renamed setup timer function.