Support function definition in CBN (on behalf of Jun)