Use deadline presence detection

Signed-off-by: Paul Brook <paul@nowt.org>