Moved the mode/stage section to config.h