Added compiling-out of profiler (forgot to implement earlier)