Modified code to fetch probes