Add logging because apparently I'm an idiot.