Call function now uses CURL