Harmonized the pg library