changed variable names fps and FRAME to frameRate and frameDuration.