Added get_messages