Attempt at getting the correct layout.