Improve badge generation output.