Added validation for function call arguments