As a part of the former Yugoslavia's socialist regime, agriculture was in private hands. Unlike other Eastern European countries, farms were small and inefficient. The republic has been, and still is, a net importer of food, relying on foreign supply for more than half of its food. The mountainous and rugged terrain is much less suitable for agriculture than Croatia and Serbia. Still the agriculture sector has traditionally produced wheat, corn, fruits, vegetables, tobacco, and livestock. The war and ethnic cleansing obliterated many Bosnian farms and severely affected the production of tobacco, the principal cash crop .