Add registerNamedObserver.