Make log view faster to update
Change renaming code to be clearer, and commented