Switched to storing reciprocal distance so we can optionally check periphery