Change in the xCM mechanism. Had to add max(0, y-q) as the xCM requires