The Gains and Losses of Technological Advancement