We demonstrate a new method of modifying the doping front migration process in multilayer structures, enabling the control of migration velocity. The presence of two interfaces in contact with the migration layer strongly affects the migration mechanism. Electrochemical switching of an electrode at one interface may be used to control the chemical doping front migration at the second interface. The process may be used to produce ultralow-cost devices acting as electronic “best use before” labels on food and drink or “use-by” labels on drugs. Control of the migration velocity may be used as a method for weighting storage conditions (i.e. opening of a package during the measurement period increases the migration velocity).