Changed pvector to pset for performance reasons