Add config, pass rules through string.format with config