Started writing a real PID

Please do not mess with this.