Changes to displaying the time, made code more efficient with less memory usage.