First initial working version of time profiler.