mainThread now uses dictionary instead of sensorList.
Renamed regulatorNew -> regulator.