Added retrieving message functions