Management of agricultural systems