Modified to dump histograms every time step (disabled by default)