Changes so that file can be specified from command line