Make memory_limit configurable