Added checks for minimum nframes