Initial stages of the layout