Added  %top_n and worked on selection