Completed lastInstructions function in FlowNode