Refactored Profiler to Timer