Added checking if file has downloaded