Making a custom progress bar. The application contains R errors now