Moved client to constructor.