Fuck-ton of logging refactoring.