Limiting the frame rate, more debug stuff.