Adding receiving download logic