emodel: Switched from strcmp to strncmp; Added especific callback for event.