Reworked translate function to be more accommodating