Removed debug function functionality