And a `getMessages()` method that returns the current messages.