Noticed that creating a source function doesn't set the Funtion == TRUE correctly. Looks like the handling of the radio boxes is incorrect.
Same is true for Virtual model procedure wizard.