Added loop to install selected package