Moved distance function and value of c to physics.