Adds ability to specficy custom retry via 'retry_if'