Added method doDispatch()