Adding intervals to the generator.