Make function calls robust with respect to the number of arguments given