Added debugging settings in run scripts. GUI can now pass Events to Editor State