Support for nested stacks