Setting up the client engine.