Removed some unused debug code