#330 Updated root index function