Fixing training, distance mapping. Driver program.