Switched to in-code iteration of eventposts