Limit the amount of frames recorded.