Added/modified libpca