Abstract handling logic.