Implement basic matching functionality