Minor edits to switch connection attempt calculation