Added the --max-consec-mismatch flag