Many changes and fixes. Log config changes.