Changed main cycle of Dispatcher.