Now outputs unique domains to a seperate file