Adds function to call UDF subprocess