This code is obsolete after adding a DefaultFunc