Update abstract generator logic and code 39 generator logic