Patches to RAM calculations.