Added Horizontal Distance Calculation