Finally have a working version for Curl library