Support multiple patterns.