Create pdf and latex plots.
Add mutex locked histogram.