Added reconnect method