set_timeout method in Deferred and several small improvements