Removed unused imports
Removed unused global vars