Fixed formatting and removed unused imports.