Adding distance stuff