Now we take an integer as the deadline, does not need to do scaling on
the deadline setting