Add pre/post hooks for instance configuration