Updated to add a sort to hosts to get unique names