Example now adjusted to new event system