Add support for nested layouts.