Add an access statistics memory.
Make the main program take arguments.