Removed some unused variables and imports.