Added in text generator functionality