Add formatting to electron unit