Add a _getProto method to simplify building