Reimplement queue using two file_streams.