Simplify logic.