Fix style issues, and change the method that refresh stats in background by adding the ability to force the refresh without taking in consideration the timeout.