Added adjustments for MB vs GB memory size