Added support for vertical matches.