Do not hardcode allocated_memory if not set