Implemented purging by size, and primitive memory purging capabilities.