Fixed logic with partial downloads (pending heavy refactor).