Added a handy profiler class to measure method execution times