Added some word generation code