Tool to merge direct recursive calls