Added a small profiler