Rename some things. Inline a fn
Rename more
More renames
Refactor
Extract update interval
Use boolean instead of int