Add automatic installation function