Changed init
Added connect retries on error