Added root info and cleanup mem