Moved protocol definition to API.