Implemented support for multiple arenas.