Removed debug function