Script-defined function calls now work