Use match.arg to handle default value of parameters