Refactored spiral layout.