Small changes to the new word function