Moved matcher function to utilities.