Now uses pipelining to send multiple packets of data. Tested with 5 messages.