Added get_messages.