Main loop, Timer.stamp fixes