Added a FPS counter for debug purposes.