Add reverse namehandling to quality lookup