Adding FPS counter, logging