Adding matchSync method. Fixes #2.