Added functions to count time spent doing things