Added function setargs to handle command line arguments