Downloading file mechanism working