Removed debug functions