Added support for reconnection strategy. Issue #21