Use a delegate.