Updated Dispatcher.cs