An explicit variable for singleValues seems unnecessary. Maybe inline it?