Added PID_reg-function and TO DOs