Added automatic deletion of file when downloaded