Progressbar refactor

Progress bar functioning in development