This reverts commit c7f8f6e363. This commit is reverted because it introduces such issues as monitor stops working. Before the issue is solved, we should keep the code on main branch work
c7f8f6e363