Added function to translate functions