Updated debug logging support, plus a fix for steps with long tags.