Generalize the bin name.
Print errors.
Update history.