Use command line arguments instead of hard-coded filename