Added code to do proper delta times.