Add custom pattern