Made demo.cpp run more in the profiled sections.