Added debug output to extract packet