A model of the mechanics of serrated flow in an amorphous alloy