Allow customization of patterns and provide easy way to set context attributes.