Simplifies the layout code