PCA trainer now integrated, tests are passing