Allow specifying a custom matcher