I need to add a new logic to my model. When M10 completes production and transportation, I need to check whether there are still items in the BUFFER. If there are, I need to process the products in the BUFFER first. My current approach is to set up a checking mechanism, but it is not working effectively.