Thanks for answering, Junsen. Yes I agree this is the best way. Leandro: within a custom Observer type as in that documentation, you can use the `isfile` function within Julia to detect a file such as STOP_DMRG to get the behavior you are asking for.