Modified for OpinSum project