Add initial functions for marking abandoned orders. #972