More fixes to connect script
Adjusted the QTimer to 5 seconds for testing purposes