Introduced getMessages() method