New code with command line args and different file naming.