Fixed logging, hopefully.