Distance script added