Updated to allow for sending multiple messages for maximum throughput