Added the timer calculation, not sure if it works because it is too fast