Made some changes to how distance is polled.