Make pool options configurable. Fixes #181