Added 2-phase PID weighting