chuckSize is taken from state transfer. I don't know what to put as a default if chunkSize is 0 or less. Please write this line of code for me :-)