Add mid into comparison.