Preparation for event dispatch