Fixed the progress bar and started working on the generator algorithm.