Writes 0 junctions before 1 junctions.