Added good ammeter code