Add debugging statements to PCA state