Fixed logging system. Hopefully. Or maybe not.