Implemented match element criterion (close #3)