Add nested definitions.
Add parent envs prototype.