Support defining callbacks from the configuration