Add maxdistance entry