Added support for directives.