Added data downloading code