Added sentiment processing functions