Three electrode setup