Implement StateManager To Root

Signed-off-by: AriDEV <aridev@azet.sk>