Wrote a little PSG test function