Added the send msg function for test map