Checks number of frames before calculating frame based parameters
Minor change