[FEATURE] Added support for overriding #max_attempts