Added pool mode support (#18) via JSON definitions.