Setting a framerate limit to fix issue #17