Add PID error preparation