Change script logging to warning and add params