Added patterns to schema constructors.