Added reconnect api