Figuring out max connections