Improved gridify debug output