Spacing logic