Add multisentence algorithm.