Added in a translate function