Switched to use guzzle instead of curl