Add some status variables. Also fix trace level logging that was somehow
missed.