Added FPS counter. Refactoring.