Added calculation of recipe chains