Add pgfunc.sh.