Finish Process data and distance calculation