Fixing warnings.
Removed some unused imports and variables.