Added distance to objective checking