Refine get_message