Try making autoConnect a public variable