Finalizing layout.