Almost working download. Fails on last block.