Implemented maximum size limit of sending

Not sending more than 4096 bytes at once: split if more