If deadline_warning is set by function, honour that value