Added calculation of hit ratio.