Started adding frameRate adapting code