Added logic for summarizing text, not tested yet