Added threshold for pearson