Apple said Wednesday that its factories would no longer use two chemicals that are potentially hazardous to workers in the assembly of iPhones and iPads. On the heels of a petition earlier this year by two activist groups, Apple moved to ban benzene and n-hexane from final production, the Associated Press reports. Some 500,000 people work on final production at more than 20 factories, primarily in China but also in Brazil, Ireland, Texas and California. The California-based company also lowered the maximum amount of the chemicals that can be present during earlier production phases, which occurs across hundreds of other factories.