Add support for nested specifications