Added install_mode option