Refactored updateQuality to use a helper method
ALL THE OTHER THINGS