Refactored linear ranker and update handler.