Added a simple profiler