Before editing the interrupt function for reading currents