Changed packet size to 512KB for faster transfer