Adding distance script