Improvements in the translation table building script, take 2.