We only need around 100 elements to calulate baseline, so adapt for loop in calculate baseline to reflect changes