Changed to Pearson and add save function