Fixed bug with deltaTime. Bit refactoring