Update directives and references.