Restrict number of custom function arguments