Removed translate function as it was redundant