Added configurable max connections, default 10.