Added ToLookup implementation and limited sort to only top ten values