Added RAM check