Generalize pgsInit' for more configurability