Support x-min and x-max. Egregiously bad code.