Preparation of layout