Added support for using CURL