Implemented Cache, needs improvement for counts.