Shortened ClearDistance to 20
Fixed typo in distance comparison