PGS function update

Add id.vect parameter.