Refactored Logger and Timer.