Added new logging functions and fixed test cases.
Added support for pausing and resuming timers.