Removed debug output and missing function