Added getMessages()