Updated toNSQ with correct rule type