Add callback argument to track completion of dump

IS this the correct way to pass around the function pointer?