Added internal tracking of events. Will be used for console related stuff.