Refinement of scale score lookup code