Make the script nil-proof (unfinished)
Made nil-proof (note to self: check every script with an empty input file)