Added ACK code, splitting of the messages for UDP