I think this works but haven't run it long enough to verify