Make discover return array of nodes