Add priority system in events.