Add a bit more debug log stuff