Tell me how to implement it? It is necessary for the plug-in on the sets and some other things - preferably with saving on restart and auto-recovery