UDF supports as a internal plugin

Based on comments at issue #939