Added Obs distance calculation