Moved the dispatch function to the abstract dispatcher.