Got the loading bar to work