Made max_connections configurable, using Heira as well