Setup up dispatcher.