Basically finished assignment 4. Adding progress bar.