Added separate most visited category accumulate function.
Visiting product rules and fuction rewritten.