Added logic to choose wget or curl.