Effect of stray currents and alternating currents