Add checks for the number of arguments and default values.
Add checks for the number of arguments and default values.