Implement chunked file transfer
Revise locks