Updated to use curl