Added support for orderded hooks