RMS: half-assed partial reduction code.