Extended create_corpus