Add distance field