Layout pass 1