Working on pg interface