Add comments to setting minimum frames, add helper function to handle minimum seconds as well