Added OptParse for handling arguments