This ensures all messages can be properly encrypted and transmitted regardless of size. Fixes issue #2