Template script now reads file in first argument and writes output to file in second argument