Improved debugging messages