Scheduled scaler: update of code and tesat cases.