Initial commit of working PG code?