Add before, after, and exn config directives