Fixed invalidArg to check for 2 args