Layout support (TODO: add a settings for to use or not to use layouts)