Code written to provide different layout options.