Removed debug function from template