Remove blank lines, tweak logging output.