Added CheckFunctionArguments