Layout refinement