Refine existing logic.