Added the translate method