combined both the polarization and power modes into a single thread