Major rewrite of Translate and submit scripts