Add example pre and post hooks.