Implement register and unregister functions of the `dispatcher`