Further progress to optimal map script.