Worked on downloading functionality