Added average distance to logfile processor.