pid.c: started reimplementation.