Added value thresholds

OK i lied, but this is the structure of the code ... still need values