Updated to use curl.