Added loop to iterate through remote hosts and add each to a list