Changed Distance to be double instead of int