Changes the pidhash to be an internal reference