Increase generation counter only if termination conditions are not
satisfied