Moved FPS control out of main