More patterns code.