Hook levels

@zbraniecki, here's a pull request for your reviewing pleasure for when you're back.  With your r+, I'll rebase and merge it, so pls don't use the 'Merge and close' button just yet :)