Move client creation to constructor.