Made spatial distance measures faster and more accurate.