Debug messages and length limits