Add profiling
Get number of commits behind regardless of refresh
Extract file information to different class