Debug logging. (@Hodgestar)