Download code improvements.