Set root guid from JSON.
Remove funcitons without use.
Clean code.