Added statistics display controlled by the command line switch -stats