Added Translate_input function and tested