I guess the main reason for this looking weird is that, since it's a deferToThread, you can ignore all the deferred stuff from this point on and it'll work anyway. Do you know what I mean?