Modified the code for pearson and baseline to be more interchangeable