WIP: All but uploadChunk is working.