Added 'translateStats' function to fix all the template tests.