Added a clock to calculate deltaTime.