Make it compatible with 1.0.0.
Add arena managing code.