Oh yeah, this logging needs some serious cleanup anyway