Simplification of the logic.