The influence of diversification on long-term viability of the agricultural sector