Set the right delegate.