Define a few hooks

[closes #39]