Discovering a good layout.