Fixed format and removed unused imports.