Adding some mismatch-tracking ranges.
Added equality check for duplicated ranges