Implemented PID functionalities