Replaced wget with curl