A working PG version