Added self as client delegate.