Re-added the connection count variable