Added next iteration logic
Added structure to save all of the configurations
Added inputs