Return ok for pattern matching in client code