Convert script description into helper function
Add leaf area calculation