Removed /d debugging function and removed debug=True