Format change, added better root check