Modified logic.