Added some person-related methods and completely changed the way the event detection works.