Finally made some progress with sub-layouts.