Changed "send" function to send only one message at time