Now code detects if mean node spacing is within bounds