Implemented max_fail_rate  in config file