Improved granularity for add_timeout().