Improved translation script