Added FPS calculation.