Layout tree almost rewritten
Layout tree almost rewritten2