Turned PID into a global