Added miss count and few fixes