Adding PCA
Adding Z calculation
Adding recovery