I've declared the variables currentTime, oldTime and deltaTime.
But you thought we didn't need to see that bit of the code?