Add percentage and use promises

These are all globals for the function that I will fill up as I go through the promises