Improved debug output