Added method to return message data