Added code to check if it's a cache hit or miss