Make it so that can easily turn profiling for function on and off