Change to the partial download code to work correctly.