Make max adapters configurable