Getting the layout ready.