Add getArguments function.