Converting createClient to promises.