Get distance and work contents