Added ability to dispatch a global function.