Add treshold and change how Conf::get_int works.