Converted some section profiling to scopedProfileIn