Modified tutorial to stop after presenting the layout.