Added beginning of directives implementation.