Updated the way we calculate qualities