Got PG working