Added method to get the list of hosts