Changes in regulaor algorithm - unit scaling