Added non-pca flag. Added logging for threshold changes.