Removed debug.logging from main code