Moved messages into the API.