Tables and procedure for bage statistics.