getLastMessage working