Adding the optimization algorithm stage.
Adding interval storage.