
This scheme provides for an orderly execution of hooks as the priorities are controlled from one single place. Enumeration is defined in such a way that new items can be added easily. All the event hooks are changed to get the priorities from this enumeration.