Implement load hooks

Closes #316