Tweak retrieval algorithm