code insert etc info for statistics.