Change keepRunning bool to set of flags.