progress bar working, minor changes.