Updated to correct frame count