Implemented patterns endpoints.