Add dispatch() function.