Add set number to c++ and python settings.