Handle history and plugging/unplugging of events