Add model type and function tree type