Removed debug function calls.