Implemented FPS counter.