Improved debug messages