A few changes and a lot of debug code to try and work out why my payloads are being truncated after 123 Bytes