Changed script to accept name of file to process