Reverted change to distance computation
Added the RotD50 horizontal component