Implemented quality selection.