Basically determine the layout