Adding generic dispatcher.