Code before attempt to fit including qoverp