Event manager code in place, needs testing.