Added progress functions to keep track of if the loading is completed.