Add some fs.WriteStream bits
Remove unnecessary sleep now that top-level is in the event loop