Implemented the QL ranker