Removed unnecessary if-check for quality