Make the maximum frame length into an option that the user can set.