Added getMemoryFree.