Implemented a fixed frame rate