Added FPS calculation