Fixed timer function in Engine