Support for custom patterns