Add flag to indicate finished transactions