Added stats table and code for updating.