Added support for badmatch errors.