Removed unused debug functions