added functionality so that percentage of data that is
available is calculated.