PCA improvements