Implements download percentage function