Added patience param