Fixed lastTime not being set.