Adds dispatcher for callbacks