Moved to a proper class (PublicPmidHelper) and updated poll() to have local copy of vectors.