I have no clue what this function does, I just moved it from libpromises. Also pre-existing.