Adding Debug, fixing event manager.