Conditionally increasing memory limits

Follow