Pulled the optouts into a separate function.