Proper chain recursion for template install