Made hook registration more flexible
0.1.1