Does this need to be in the event loop?