- Added reconnecting functionality