Removed download into files and added authentication