Changed wget to curl