Use send_after() for timing.
Add escript parameters.
Error out if we can't create a file.
Use concat instead of ++.
Error out if read_file() fails.