Added distance functions, started checking points