Added protection against low memory devices.