what does this do? Why does the frame writer care about stream limits?