I'm not sure how to use this exactly. $layout can be an associative array or a key.

This needs some more documentation I guess.