Compute average only for rate!=-1