Add post/pre actions.