Added getMessages