Add basic matching function