Changing from sockets to guzzle