Added max_try_cnt parameter to construct