Solved the timer issue with the new Timer class.