Improve the structure. Introduce a FPS counter.