Minor refactors and fixes.
FPS counter.