Reformatting change.
Renamed the recoveries storage variable to 'recoveries' from 'restarts'.
Added some comments for code-clarity.