Change lr -> tree + group l/ll functions