Adding variable frame rate