Modified scripts to accept command line arguments