Add support for partial matching.