Added code to handle expired orders that need to be remade. Doesn't seem to work yet, though.