Until independence, Armenia's economy was based largely on industry—chemicals, electronic products, machinery, processed food, synthetic rubber and textiles; it was highly dependent on outside resources.