local copy of PID

Fork of PID by Aaron Berk

Changes