Edited event manager sample.