Document directives and services