Move pg to global