Added lower bound to mismatch func