Oh so it is checking only the order status and if it is canceled or refunded woopos automatically restore stock levels. What if you do a partial refund in one product? Will the stock level change for the one product that got refunded? Would not be more viable to check if the order status changed and just check if that orders items has any changes?