Added 'Clear all imports' logic.