Code cleanup. Changed the default NUM_CPU to 1.