Implemented top queries method