Updated ICAP debug script