Updated reverse words to use simplified template