Modified DOT creator code for pathfinder.