Reorganize return values of get_messge