Made FPS functions work... again, probably in the wrong way