Added COMPARE, COMPARE-TOTAL and COMPARE-TOTAL-INT.