Use valid hookFor signature

This will fix issue #28
Merge pull request #29 from SBoudrias/master

Use valid hookFor signature (Fix #28)