WIP: progress bar. Filled in some functionality.
Finished up progress bar functionality.