Added downloading functionality