Still working on getting debug logging working the way I want.