Still working on the progress bar functionality, rest is done correctly.