Added command line argument parsing for specifying filename dynamically