Added execution priority to hooks