Added profiler so that we can test for memory leaks when developing