Added length to debug messages.