Troubleshooting checkConnection() removing unwanted lines