Now generates text! Everything appears to work, but there may still be some bugs.