Fixed unused imports and warnings.