I am trying to make the robot arm load the box from the queue first before going to the processor and exchanging that box with the one on the processor, if there is one, before throwing the processed box in the output but the robot always ends up clearing the processor before loading from the queue. I have tried a bunch of things that did not work so I am just posting the main model. Hopefully my explanation is sufficient. (give it a warm up time of ~660 seconds) Prototype19.fsm