Added some matching methods for Pattern Library.