Add dir directive.