Minor cleanup
Implemented ranking of frequently used items