The FPS counter stuff should be its own function imho