Adding event dispatcher class.