Identifying roots after parsing