Add processArguments method