Adds code download function.