Removed unused variables and imports.