Add support for nested directives