#187 Add dynamic registration of listeners.