Use long instead of int when parsing size. Allows for copying larger chunks.