Replaced quality array with unordered map.