Livestock can help keep farms in good heart